package com.ktwlrj.securitycenter.service;
import java.util.List;

import com.ktwlrj.core.base.SuperServer;
import com.ktwlrj.securitycenter.controller.args.SafeCredentialArgs;
import com.ktwlrj.securitycenter.dto.SafeCredentialDto;
import com.ktwlrj.securitycenter.entity.SafeCredentialEntity;

/**
 * 要件表(SafeCredential)业务层接口
 *
 * @author code generation
 * @date 2020-02-24 18:08:13
 * @since JDK1.8
 */
public interface SafeCredentialService extends SuperServer<SafeCredentialEntity> {
    /**
     * 保存
     *
     * @param args ${@link SafeCredentialArgs}
     * @throws RuntimeException ${@link RuntimeException}
     * @author code generation
     * @date 2020-02-24 18:08:13
     */
    void save(SafeCredentialArgs args) throws RuntimeException;


    /**
     * 批量保存
     * @param args
     * @throws RuntimeException
     */
    void batchSave(List<SafeCredentialArgs> args) throws RuntimeException;


    /**
     * 条件查询多条
     *
     * @param busiId 业务id
     * @throws RuntimeException ${@link RuntimeException}
     * @return List<SafeCredentialDto> ${@link List<SafeCredentialDto>}
     * @author code generation
     * @date 2020-02-24 18:08:13
     */
    List<SafeCredentialDto> selectListByModel(String busiId) throws RuntimeException;
    
    /**
     * 删除要件信息
     *
     * @param busiId 业务id
     * @throws RuntimeException ${@link RuntimeException}
     * @return List<SafeCredentialDto> ${@link List<SafeCredentialDto>}
     * @author code generation
     * @date 2020-02-24 18:08:13
     */
    void  deleteByBusiId(String busiId) throws RuntimeException;
}